package com.cochain;

import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @GetMapping(value = "/test")
    public String search2(@RequestParam String entryId) {
        HttpHeaders headers = new HttpHeaders();
        // 设置连接保活时间，例如30秒
        headers.set("Keep-Alive", "timeout=30");

       System.out.println(entryId+System.currentTimeMillis());
       return "OK";
    }

}
